package com.customer.mall.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.customer.mall.domain.Category;
import com.customer.mall.domain.vo.CategoryVO;
import com.customer.mall.util.ResponseResult;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author BaiGGG
 * @since 2023-06-25
 */
public interface ICategoryService extends IService<Category> {

    ResponseResult<Page<Category>> pageCategory(Integer pageNum, Integer pageSize);

    ResponseResult<CategoryVO> getCategoryById(Integer id);

    ResponseResult<String> insertCategory(Category category);

    ResponseResult<String> updateCategory(Category category);
}
